# -*- coding: utf-8 -*-

from app.init import Init
from app.keyword.keyword_extract import KeywordExtract
from app.common.config import Config
import sys
import traceback

def main():

    try:

        Init()

        config = Config('config.ini')
        service = KeywordExtract(config.get('other', 'stopwordsFilePath'))
        service.extract(3)
    except:
        print sys.exc_info()

if __name__ == '__main__':
    main()